/*
 * @Author: yuluo
 * @Date: 2025-08-28
 * @LastEditors: yuluo
 * @LastEditTime: 2025-09-06
 * @FilePath: \Projecte:\gitee\GD32F427\gd32-f427-BootLoader\BSP\inc\drv_chip_flash.h
 * @Description: 
 * 如有特殊注意事项请填写
 * Copyright (c) by ${yuluo}, All Rights Reserved. 
 */

#ifndef DRV_CHIP_FLASH_H_
#define DRV_CHIP_FLASH_H_

#include "main.h"

uint8_t gd32_WriteFlash_Word(uint32_t WriteAddr, uint32_t *pBuffer, uint16_t NumToWrite);
uint8_t gd32_EraseFlash_Sector(uint32_t Sector_Address);
uint8_t gd32_EraseFlash_Page(uint32_t Page_Address);
uint32_t gd32_get_sector_addr(uint32_t addr);
void gd32_erase_app(void);

#endif // !DRV_CHIP_FLASH_H_
